package poly;

public class Main {
    public static void main(String[] args) {
        Student[] students = new Student[5];
        students[0] = new Student(1,"张琳",90,80,70);
        students[1] = new Student(2,"张刘荣",60,59,60);
        students[2] = new Student(3,"杨晨婧",60,60,60);
        students[3] = new StudentBZ(4,"小明",80,80,70,"班长");
        students[4] = new StudentXW(5,"张三",60,80,70,"学委");

        for (Student student : students){
            System.out.println(student  +  " 平均成绩为：" + student.textScore());
        }
    }
}
